package com.sinder.campus_prophet.entity.general;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 静态资源记录表
 * @TableName tb_resource_data
 */
@TableName(value ="tb_resource_data")
@Data
public class TbResourceData implements Serializable {
    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资源类型，对应表名
     */
    @TableField(value = "resource_type")
    private String resourceType;

    /**
     * 资源关联id
     */
    @TableField(value = "reource_id")
    private Integer reourceId;

    /**
     * 资源访问地址
     */
    @TableField(value = "proxy_url")
    private String proxyUrl;

    /**
     * 资源标识：图片和视频
     */
    @TableField(value = "resource_code")
    private String resourceCode;

    /**
     * 资源大小:10M
     */
    @TableField(value = "resource_size")
    private String resourceSize;

    /**
     * 资源名称
     */
    @TableField(value = "resource_name")
    private String resourceName;

    /**
     * 上传时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}